package com.cq.hd.order.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 拼团订单（团组）列表
 *
 * @author Much
 * @since 2024/09/21 20:32
 */
@Data
public class GroupBuyOrderPageVo implements Serializable {
    private static final long serialVersionUID = 6740836535743633051L;

    @ApiModelProperty(value = "拼团主单id")
    private Long id;

    @ApiModelProperty(value = "团长昵称")
    private String leadNickName;

    @ApiModelProperty(value = "团长手机")
    private String leadMobile;

    @ApiModelProperty(value = "需参团人数")
    private Integer groupNum;

    @ApiModelProperty(value = "当前参团人数")
    private Integer currentNum;

    @ApiModelProperty(value = "状态：1-待成团 2-已成团 3-拼团失败")
    private Integer status;

    @ApiModelProperty(value = "开团时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "成团时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime groupTime;

    @ApiModelProperty(value = "拼团成员")
    private List<GroupBuyOrderItemVo> items;

}
